﻿using System;
using System.Collections.Generic;
using System.Text;

using libReadWrite;
using libCommonClass;

namespace TTServer.Messages
{
    class RSAPublicKeyClientMessage : TTMessage
    {
        public byte[] modulus;
        public byte[] exponent;

        public RSAPublicKeyClientMessage()
        {
            
        }

        public override void ReadMessage(BigEndianReader sr)
        {
            this.modulus = sr.ReadByteArray();
            this.exponent = sr.ReadByteArray();
        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override TTMessage Clone()
        {
            return (new RSAPublicKeyClientMessage());
        }

        public override int GetMessageID()
        {
            return MessageKind.RSA_PUBLIC_KEY_CLIENT;
        }

        public override string GetMessageName()
        {
            return "RSAPublicKeyClient";
        }
    }
}
